﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNVP.JShop.BLL
{
    public class BLLOrder
    {
        /// <summary>
        /// 返回定单状态(前台)
        /// </summary>
        public static string getorderztClint(int id)
        {
            string[] orderzt = { "等待付款", "等待对方发货", "配送中", "", "确认收货", "完成", "完成", "完成", "退货单", "<font color=\"#CCCCCC\">已取消</font>" };
            if (id > -1 && id < 10)
            {
                return orderzt[id];
            }
            else
            {
                return "错误的ID";
            }
        }
        /// <summary>
        /// 返回定单状态(后台)
        /// </summary>
        public static string getorderzt(int id)
        {
            string[] orderzt = { "等待付款", "准备发货(到付或已付)", "配送中", "", "确认收货", "付款成功", "", "已结算", "退货单", "<font color=\"#CCCCCC\">已取消</font>" };
            if (id > -1 && id < 10)
            {
                return orderzt[id];
            }
            else
            {
                return "错误的ID";
            }
        }

        public enum OrderStateClint
        {
            等待付款=0,
            等待对方发货=1,
            配送中=2,
            确认收货=4,
            付款完成 = 5,
            结算完成=7,
            退货单=8,
            已取消=9
        }

        public enum OrderStateServer
        {
            等待付款 = 0,
            准备发货 = 1,
            配送中 = 2,
            确认收货 = 4,
            付款成功 = 5,
            已结算 = 7,
            退货单 = 8,
            已取消 = 9
        }
    }
}
